import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { HttpProvider } from '../../providers/http/http';
import { StorageProvider } from '../../providers/storage/storage';
import { DialogProvider } from '../../providers/dialog/dialog';
/**
 * Generated class for the Userwages page.
 *
 * See http://ionicframework.com/docs/components/#navigation for more info
 * on Ionic pages and navigation.
 */
@IonicPage()
@Component({
	selector: 'page-userwages',
	templateUrl: 'userwages.html',
})
export class UserwagesPage {

	inputSelect: InputSelect = {
		timeStarts: '',
		timeEdns: ''
	}
	items: Array < {
		strdate: string,
		content: string
	} > ;

	constructor(
		public navCtrl: NavController,
		public navParams: NavParams,
		public http: HttpProvider,
		public storage: StorageProvider,
		public dialog: DialogProvider) {
	}

	ionViewDidLoad() {
		console.log('ionViewDidLoad Userwages');
		this.loadData();
	}

	loadData() {
		//假数据初始化
		this.items = [];
		for(let i = 0; i < 30; i++) {
			this.items.push({
				strdate: '2017年2月',
				content: '5326.00元'
			});
		}
	}

}

export class InputSelect {
	timeStarts: string;
	timeEdns: string;
}